<template>
	<view class="collect-content">
		<view class="prompt-row">
			<text>拿起手机眨眨眼</text>
		</view>
		<view class="camera" @tap="modalHandle(true)">
			<view class="show-face">
				<view class="prompt">
					<text>没有采集到人脸</text>
				</view>
			</view>
		</view>
		<view>
			<u-modal v-model="modalShow" :content="content" title="很抱歉" confirm-text="确认" confirm-color="#fff"
				@confirm="confirmHandle" :confirm-style="confirmStyle"></u-modal>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				modalShow: false,
				content: '认证失败，请重新认证',
				//弹窗确认按钮的颜色
				confirmStyle:{
					backgroundColor:'#F4333C',
					marginBottom: '20rpx',
					height: '80rpx',
					borderRadius: '40rpx',
					display: 'flex',
					alignItems: 'center',
					justifyContent: 'center',
				}
			}
		},
		methods: {
			//认证失败提示弹窗
			modalHandle(bool) {
				this.modalShow = bool;
			},
			//点击确认按钮
			confirmHandle() {
				this.modalShow = false;
			}
		},
	}
</script>

<style lang="scss" scoped>
	.collect-content {
		background: #fff;
		overflow: hidden;
		min-height: calc(100vh - 88rpx);

		.prompt-row {
			font-size: 46rpx;
			text-align: center;
			font-weight: bold;
			color: #333333;
			margin-top: 74rpx;
		}

		.camera {
			width: 440rpx;
			height: 430rpx;
			border: 1rpx solid red;
			margin: 159rpx auto 0rpx;

			.show-face {
				width: 420rpx;
				height: 420rpx;
				border-radius: 210rpx;
				background: #e7e7e7;
				overflow: hidden;
				margin: 10rpx 0rpx 0rpx 10rpx;
				position: relative;

				.prompt {
					width: 100%;
					height: 111rpx;
					text-align: center;
					padding: 46rpx 0 33rpx;
					font-size: 34rpx;
					color: #fff;
					background-color: rgba(0, 0, 0, 0.4);
					position: absolute;
					top: 0rpx;
					left: 0rpx;
				}
			}
		}

		/deep/.u-model {
			padding: 0rpx 60rpx;
		}

	}
</style>
